﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace BLL
{
    public class NhomSanPhamBO
    {
        NhomSanPhamDAL dal;
        public NhomSanPhamBO()
        {
            dal = new NhomSanPhamDAL();
        }
        public DataTable Laynhomsanphamcha()
        {
            DataTable dt = null;
            try
            {
                dt = dal.Laynhomsanphamcha();
            }
            catch (Exception e)
            {               
                throw new Exception(e.Message);
            }
            return dt;
        }
        public DataTable Laynhomsanphamcon(int manhomcha)
        {
            DataTable dt = null;
            try
            {
                dt = dal.Laynhomsanphamcon(manhomcha);
            }
            catch (Exception)
            {
                
                throw;
            }
            return dt;
        }
    }
}
